import request from '@/utils/axios'
import store from '@/store'

// 根据用户获取分组数据
// export const getListByUser = () => {
//     return request.post({
//         url: '/disease/manage/group/list-by-user',
//         params: {
//             userId: store.userApp.userInfo.id
//         }
//     })
// }

// 随访信息-统计
export const countTask = (data: any) => {
  return request.get({
    url: '/disease/station/follow/count-task',
    params: data
  })
}

// 管理消息-患者数据变更
export const messageTaskCount = (data: any) => {
  return request.post({
    url: '/disease/station/message/task-count',
    data: data
  })
}

// 管理消息-分页
export const messageList = (data: any) => {
  return request.post({
    url: '/disease/station/message/list',
    data: data
  })
}

// 管理消息-清除未读
export const clearRead = (data: any) => {
  return request.get({
    url: '/disease/station/message/clear-read',
    params: data
  })
}

// 管理消息-患者数据变更详情
export const messageInfoList = (data: any) => {
  return request.get({
    url: '/disease/station/message/manage-info-list',
    data: data
  })
}

// 管理消息-随访任务待办/办结
export const followList = (data: any) => {
  return request.post({
    url: '/disease/station/follow/list',
    data: data
  })
}

// 管理消息-随访任务修改
export const followUpdate = (data: any) => {
  return request.post({
    url: '/disease/station/follow/update',
    data: data
  })
}

// 工作台-不良事件信息-不良反应 未处理/已处理
export const adverseList = (data: any) => {
  return request.post({
    url: '/disease/station/adverse/list',
    data: data
  })
}

// 工作台-不良事件信息-不良事件修改(忽略)
export const adverseUpdate = (data: any) => {
  return request.post({
    url: '/disease/station/adverse/update',
    data: data
  })
}

// 工作台-复查信息-未复查患者 未处理/已处理
export const remindList = (data: any) => {
  return request.post({
    url: '/disease/station/remind/list',
    data: data
  })
}

// 工作台-复查信息-未复查患者-复查修改（忽略）
export const remindUpdate = (data: any) => {
  return request.post({
    url: '/disease/station/remind/update',
    data: data
  })
}

// // 获取未分配患者
// export const getUnsetList = () => {
//     return request.post({
//         url: '/disease/manage/info/list-unset'
//     })
// }
